PreferencesRow

A [class@Gtk.ListBoxRow] used to present preferences.

The AdwPreferencesRow widget has a title that [class@PreferencesWindow] will use to let the user look for a preference. It doesn't present the title in any way and lets you present the preference as you please.

[class@ActionRow] and its derivatives are convenient to use as preference rows as they take care of presenting the preference's title while letting you compose the inputs of the preference around it.

Constructors

this
this(AdwPreferencesRow* adwPreferencesRow, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new AdwPreferencesRow.

Members

Functions

getPreferencesRowStruct
AdwPreferencesRow* getPreferencesRowStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getTitle
string getTitle()

Gets the title of the preference represented by @self.

getTitleSelectable
bool getTitleSelectable()

Gets whether the user can copy the title from the label

getUseUnderline
bool getUseUnderline()

Gets whether an embedded underline in the title indicates a mnemonic.

setTitle
void setTitle(string title)

Sets the title of the preference represented by @self.

setTitleSelectable
void setTitleSelectable(bool titleSelectable)

Sets whether the user can copy the title from the label

setUseUnderline
void setUseUnderline(bool useUnderline)

Sets whether an embedded underline in the title indicates a mnemonic.

Static functions

getType
GType getType()

Variables

adwPreferencesRow
AdwPreferencesRow* adwPreferencesRow;

the main Gtk struct

Inherited Members

From ListBoxRow

gtkListBoxRow
GtkListBoxRow* gtkListBoxRow;

the main Gtk struct

getListBoxRowStruct
GtkListBoxRow* getListBoxRowStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin ActionableT!(GtkListBoxRow)
Undocumented in source.
getType
GType getType()
changed
void changed()

Marks @row as changed, causing any state that depends on this to be updated.

getActivatable
bool getActivatable()

Gets whether the row is activatable.

getChild
Widget getChild()

Gets the child widget of @row.

getHeader
Widget getHeader()

Returns the current header of the @row.

getIndex
int getIndex()

Gets the current index of the @row in its GtkListBox container.

getSelectable
bool getSelectable()

Gets whether the row can be selected.

isSelected
bool isSelected()

Returns whether the child is currently selected in its GtkListBox container.

setActivatable
void setActivatable(bool activatable)

Set whether the row is activatable.

setChild
void setChild(Widget child)

Sets the child widget of @self.

setHeader
void setHeader(Widget header)

Sets the current header of the @row.

setSelectable
void setSelectable(bool selectable)

Set whether the row can be selected.

addOnActivate
gulong addOnActivate(void delegate(ListBoxRow) dlg, ConnectFlags connectFlags)

This is a keybinding signal, which will cause this row to be activated.

Meta